package org.jash.common

import android.app.Application
import android.content.Context
import androidx.multidex.MultiDex
import com.alibaba.android.arouter.launcher.ARouter
import com.lody.virtual.client.core.VirtualCore
import com.lody.virtual.client.core.VirtualCore.VirtualInitializer
import com.lody.virtual.client.stub.VASettings
import com.tencent.bugly.crashreport.CrashReport
import io.virtualapp.hook_sdk.app.InstallAppUtils

class BaseApplication:Application() {
    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        VirtualCore.get().startup(this)
        MultiDex.install(this)
    }
    override fun onCreate() {
        super.onCreate()
        if (BuildConfig.DEBUG) {
            ARouter.openDebug()
            ARouter.openLog()
        }
        ARouter.init(this)
        val core = VirtualCore.get()
        core.initialize(object :VirtualInitializer() {

        })
        CrashReport.initCrashReport(this, "0ae541433c", false)
    }
}